package com.xyebank.ledger.service.zl.sche.jry;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.xyebank.ledger.anon.MigTaskComponent;
import com.xyebank.ledger.enums.LedgerJobType;
import com.xyebank.ledger.service.common.MigServiceAdapter;
import com.xyebank.ledger.service.zl.adapter.jry.ZLJRYServiceAdapter;
import com.xyebank.ledger.vo.deal.ZLJRYPaymentVo;

@Component
@MigTaskComponent(type = "zl_jry_pay_")
public class ZLJryPayMigService extends MigServiceAdapter<ZLJRYPaymentVo> {

    @Resource(name = "zlJryServiceAdapter")
    ZLJRYServiceAdapter zlServiceAdapter;

    @Override
    public Integer deal(Integer fromIdx, List list, LedgerJobType jobType) {
        return zlServiceAdapter.dealPayment(fromIdx, list, LedgerJobType.MIGRATE);
    }

}
